<!DOCTYPE html>
<html>
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  
  <title>我个人风格的Linux从零开始配置流程 | Mark&#39;s blog</title>
  
  

  

  <meta name="HandheldFriendly" content="True">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <!-- meta -->
  

  <!-- link -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css">
  
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/node-waves@0.7.6/dist/waves.min.css">
  
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.10.1/css/all.min.css">
  

  
  <link rel="shortcut icon" type="image/x-icon" href="https://cdn.jsdelivr.net/gh/xaoxuu/assets@master/favicon/favicon.ico">
  

  
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.5/css/style.css">
  

  <script>
    function setLoadingBarProgress(num) {
      document.getElementById('loading-bar').style.width=num+"%";
    }
  </script>

  
  
</head>

<body>
  
  
  <div class="cover-wrapper">
    <cover class='cover post half'>
      
        
  <h1 class='title'>Mark's blog</h1>


  <div class="m_search">
    <form name="searchform" class="form u-search-form">
      <input type="text" class="input u-search-input" placeholder="" />
      <i class="icon fas fa-search fa-fw"></i>
    </form>
  </div>

<div class='menu navgation'>
  <ul class='h-list'>
    
      
        <li>
          <a class="nav home" href="/"
            
            
            id="home">
            <i class='fas fa-home fa-fw'></i>&nbsp;首页
          </a>
        </li>
      
        <li>
          <a class="nav home" href="/projects/"
            
            
            id="projects">
            <i class='fas fa-code-branch fa-fw'></i>&nbsp;项目
          </a>
        </li>
      
        <li>
          <a class="nav home" href="/archives/"
            
              rel="nofollow"
            
            
            id="archives">
            <i class='fas fa-archive fa-fw'></i>&nbsp;归档
          </a>
        </li>
      
        <li>
          <a class="nav home" href="/about/"
            
              rel="nofollow"
            
            
            id="about">
            <i class='fas fa-info-circle fa-fw'></i>&nbsp;关于
          </a>
        </li>
      
    
  </ul>
</div>

      
    </cover>
    <header class="l_header pure">
  <div id="loading-bar-wrapper">
    <div id="loading-bar" class="pure"></div>
  </div>

	<div class='wrapper'>
		<div class="nav-main container container--flex">
      <a class="logo flat-box" href='/' >
        
          Mark's blog
        
      </a>
			<div class='menu navgation'>
				<ul class='h-list'>
          
  					
  						<li>
								<a class="nav flat-box" href="/"
                  
                  
                  id="home">
									<i class='fas fa-home fa-fw'></i>&nbsp;首页
								</a>
							</li>
      			
  						<li>
								<a class="nav flat-box" href="/archives/"
                  
                    rel="nofollow"
                  
                  
                  id="archives">
									<i class='fas fa-archive fa-fw'></i>&nbsp;归档
								</a>
							</li>
      			
  						<li>
								<a class="nav flat-box" href="/books/"
                  
                  
                  id="books">
									<i class='fas fa-book-open fa-fw'></i>&nbsp;读书
								</a>
							</li>
      			
  						<li>
								<a class="nav flat-box" href="/about/"
                  
                    rel="nofollow"
                  
                  
                  id="about">
									<i class='fas fa-info-circle fa-fw'></i>&nbsp;关于
								</a>
							</li>
      			
      		
				</ul>
			</div>

			
				<div class="m_search">
					<form name="searchform" class="form u-search-form">
						<input type="text" class="input u-search-input" placeholder="搜索" />
						<i class="icon fas fa-search fa-fw"></i>
					</form>
				</div>
			
			<ul class='switcher h-list'>
				
					<li class='s-search'><a class="fas fa-search fa-fw" href='javascript:void(0)'></a></li>
				
				<li class='s-menu'><a class="fas fa-bars fa-fw" href='javascript:void(0)'></a></li>
			</ul>
		</div>

		<div class='nav-sub container container--flex'>
			<a class="logo flat-box"></a>
			<ul class='switcher h-list'>
				<li class='s-comment'><a class="flat-btn fas fa-comments fa-fw" href='javascript:void(0)'></a></li>
        
          <li class='s-toc'><a class="flat-btn fas fa-list fa-fw" href='javascript:void(0)'></a></li>
        
			</ul>
		</div>
	</div>
</header>
	<aside class="menu-phone">
    <header>
		<nav class="menu navgation">
      <ul>
        
          
            <li>
							<a class="nav flat-box" href="/"
                
                
                id="home">
								<i class='fas fa-clock fa-fw'></i>&nbsp;近期文章
							</a>
            </li>
          
            <li>
							<a class="nav flat-box" href="/archives/"
                
                  rel="nofollow"
                
                
                id="archives">
								<i class='fas fa-archive fa-fw'></i>&nbsp;文章归档
							</a>
            </li>
          
            <li>
							<a class="nav flat-box" href="/projects/"
                
                
                id="projects">
								<i class='fas fa-code-branch fa-fw'></i>&nbsp;开源项目
							</a>
            </li>
          
            <li>
							<a class="nav flat-box" href="/books/"
                
                
                id="books">
								<i class='fas fa-book-open fa-fw'></i>&nbsp;读书专栏
							</a>
            </li>
          
            <li>
							<a class="nav flat-box" href="/friends/"
                
                  rel="nofollow"
                
                
                id="friends">
								<i class='fas fa-link fa-fw'></i>&nbsp;我的友链
							</a>
            </li>
          
            <li>
							<a class="nav flat-box" href="https://xaoxuu.com/wiki/material-x/"
                
                  rel="nofollow"
                
                
                id="https:xaoxuu.comwikimaterial-x">
								<i class='fas fa-book fa-fw'></i>&nbsp;主题文档
							</a>
            </li>
          
            <li>
							<a class="nav flat-box" href="/about/"
                
                  rel="nofollow"
                
                
                id="about">
								<i class='fas fa-info-circle fa-fw'></i>&nbsp;关于小站
							</a>
            </li>
          
       
      </ul>
		</nav>
    </header>
	</aside>
<script>setLoadingBarProgress(40);</script>

  </div>


  <div class="l_body">
    <div class='body-wrapper'>
      <div class='l_main'>
  

  
    <article id="post" class="post white-box article-type-post" itemscope itemprop="blogPost">
      


  <section class='meta'>
    
    
    <div class="meta" id="header-meta">
      
        
  
    <h1 class="title">
      <a href="/2018/09/08/start_Linux/">
        我个人风格的Linux从零开始配置流程
      </a>
    </h1>
  


      
      <div class='new-meta-box'>
        
          
        
          
            
  <div class='new-meta-item author'>
    <a href="https://mark-thinkpad.gitee.io" rel="nofollow">
      
        <img src="https://img.vim-cn.com/e5/755adedff8463a344e0870b440b718d4f4fa93.jpg">
      
      <p>Mark</p>
    </a>
  </div>


          
        
          
            <div class="new-meta-item date">
  <a class='notlink'>
    <i class="fas fa-calendar-alt" aria-hidden="true"></i>
    <p>2018-09-08</p>
  </a>
</div>

          
        
          
            
  
  <div class='new-meta-item category'>
    <a href='/categories/Start-Linux/' rel="nofollow">
      <i class="fas fa-folder-open" aria-hidden="true"></i>
      <p>Start_Linux</p>
    </a>
  </div>


          
        
          
            
  
    <div class="new-meta-item browse busuanzi">
      <a class='notlink'>
        <i class="fas fa-eye" aria-hidden="true"></i>
        <p>
          <span id="busuanzi_value_page_pv">
            <i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i>
          </span>
        </p>
      </a>
    </div>
  


          
        
          
            

          
        
      </div>
      
        <hr>
      
    </div>
  </section>


      <section class="article typo">
        <div class="article-entry" itemprop="articleBody">
          <h1 id="Content"><a href="#Content" class="headerlink" title="Content"></a>Content</h1><!-- TOC -->

<ul>
<li><a href="#content">Content</a><ul>
<li><a href="#发型版的选用">发型版的选用</a></li>
<li><a href="#更改系统语言--安装字体--更改字体--修改终端配置--修改系统主题">更改系统语言 &amp; 安装字体 &amp; 更改字体 &amp; 修改终端配置 &amp; 修改系统主题</a></li>
<li><a href="#更换软件源">更换软件源</a></li>
<li><a href="#安装配置基础软件-vim--tree--git">安装配置基础软件: VIM &amp; tree &amp; git</a></li>
<li><a href="#换一个好看的shell-安装zsh及oh-my-zsh">换一个好看的shell: 安装zsh及oh-my-zsh</a></li>
<li><a href="#远程连接工具-remmina">远程连接工具: remmina</a></li>
<li><a href="#chrome--firefox不用我多说">Chrome &amp; FireFox不用我多说</a></li>
<li><a href="#主力编辑器-visual-studio-code">主力编辑器: Visual Studio Code</a></li>
<li><a href="#几个需要说明的国产软件">几个需要说明的国产软件</a></li>
<li><a href="#python3库的补充">Python3库的补充</a></li>
<li><a href="#爬虫要用到的一些东西-phantomjs-chromedriver">爬虫要用到的一些东西: PhantomJS, ChromeDriver</a></li>
<li><a href="#nodejs环境搭建">Node.js环境搭建</a></li>
<li><a href="#mongodb数据库">mongodb数据库</a></li>
<li><a href="#安利两个好用的小软件">安利两个好用的小软件</a></li>
<li><a href="#基本上可以搞事情了-突然发现还有一件事没干-配置github--码云">基本上可以搞事情了, 突然发现还有一件事没干, 配置github &amp; 码云</a></li>
<li><a href="#开始你的linux平台编程之旅吧">开始你的Linux平台编程之旅吧!</a></li>
</ul>
</li>
</ul>
<!-- /TOC -->

<hr>
<a id="more"></a>

<hr>
<h2 id="发型版的选用"><a href="#发型版的选用" class="headerlink" title="发型版的选用"></a>发型版的选用</h2><ul>
<li><p>大致的范围是<code>Debian系</code>, 在使用几个著名的Debian系发型版之后, 发现主要的区别是桌面环境, 在不停换用的五个月之后, 最终稳定下来是<code>Ubuntu Mate</code>.</p>
</li>
<li><p>解释一下, <code>Ubuntu</code>想必大家都知道, 还有更出名的是这句有画面感的话 - “你的系统出现了内部错误”, 看到这句话, 便可大舒一口气, 这肯定是正宗的ubuntu, 后面的<code>mate</code>是怎么回事呢? <code>mate桌面环境</code>起源于<code>Gnome3</code>开始作妖的那段时间, <code>gn3</code>那个鬼样子嘛…emmm稍有常识的人心里都有数, 有人不愿意放弃好用的<code>Gnome2桌面</code>, 于是从已经停止维护的<code>Gnome2代码库</code>里把gn2救了回来, 改名为<code>mate</code>, 一直续命到现在, <code>1.20</code>版本也是不甘落伍, 增加了对<code>Gtk3+</code>的资磁, 熟悉gn3作妖的那个时代的人, 看到gn2改头换面还活着, 应该心里还是有些安慰的吧.</p>
</li>
<li><p>mate桌面现在依然是很多主流发行版官方支持的桌面, 包括<code>Debian</code>, <code>Ubuntu</code>, <code>Linux Mint</code>等等, mate官方网站说它适合老机器, 巧了, 作者用的就是一台2012发布的经典小黑ThinkPad笔记本, 经过实测, 开机占用<code>800M</code>内存左右, 不过分吧(Gnome3请不要逃避现实), 当然<code>xfce桌面</code>开机只占用500M左右, 比不过比不过. 好了, 就不再啰嗦了, 用了mate桌面的人都说好(手动狗头)</p>
</li>
<li><p>我不是没有安装过Debian, 在作者这台笔记本上, 试过Debian9.4.0, 由于下载的是原版镜像, 只有开源(<code>free</code>)驱动……然后我的无线网卡就凉了, 由于我的无知, 还是回到了Ubuntu(真香.gif), Ubuntu的驱动支持还是可以肯定一下的, 包含很多<code>non-free</code>闭源驱动(笔者在这篇文章的一个星期前在二奶机上安装了Debian, 发现官方支持的mate版本还是1.16, 并不支持Gtk3+, 我喜欢的主题用不了呜呜呜), 再加上Ubuntu的很多教程也比较好找, Debian相比就硬核一些, 感觉是给老司机用的.</p>
</li>
<li><p>最终选用<code>Ubuntu Mate</code>的理由我应该解释完了.</p>
</li>
<li><p>最后推荐一个国内镜像站:<a href="http://mirrors.ustc.edu.cn/" target="_blank" rel="noopener">中科大镜像站</a>, 速度绝对有保证.</p>
</li>
</ul>
<hr>
<h2 id="更改系统语言-amp-安装字体-amp-更改字体-amp-修改终端配置-amp-修改系统主题"><a href="#更改系统语言-amp-安装字体-amp-更改字体-amp-修改终端配置-amp-修改系统主题" class="headerlink" title="更改系统语言 &amp; 安装字体 &amp; 更改字体 &amp; 修改终端配置 &amp; 修改系统主题"></a>更改系统语言 &amp; 安装字体 &amp; 更改字体 &amp; 修改终端配置 &amp; 修改系统主题</h2><ul>
<li>我一般会在安装时选择英文, 是为了在终端里操作时方便, 避免中文, 安装完成后载把系统语言改为中文就好. </li>
<li>按照惯例, 一定会安装<code>Fira Code</code>&amp;<code>文泉驿微米黑</code>, <code>Fira Code</code>是等宽的编程字体, 作者在github上有发布, 但是已经保存在我的移动硬盘了.</li>
<li>在<code>系统设置</code>里把所有<code>Sans</code>字体改为<code>Noto Sans CJK SC系列</code>, 字重保持一致, 等宽字体改为<code>Fira Code</code></li>
<li>更改终端的字体为<code>Fira Code</code>, 字号<code>12</code>, 最后改成如下图就行.</li>
</ul>
<p><img src="http://static.zybuluo.com/Mark201802/uph70qt9suibh1g4vskv4wth/image.png" alt="ter0"></p>
<p><img src="http://static.zybuluo.com/Mark201802/vt3mxobspt6549skbktif74q/image.png" alt="ter1"></p>
<p><img src="http://static.zybuluo.com/Mark201802/msdtbfp8m3nraz862zo8qevz/image.png" alt="ter2"></p>
<p><img src="http://static.zybuluo.com/Mark201802/10rwp7dfk7md9w2uy2xlcew6/image.png" alt="ter3"></p>
<ul>
<li>修改完之后的效果为下图</li>
</ul>
<p><img src="http://static.zybuluo.com/Mark201802/6h7j9zqmmuw4mtwxw1inekxc/ter.png" alt="ter4"></p>
<ul>
<li>改系统主题主要安装以下三种主题包: mac os主题包, mac os图标包, mac os鼠标指针包, 反正已经备份到移动硬盘里面了(手动滑稽)</li>
</ul>
<hr>
<h2 id="更换软件源"><a href="#更换软件源" class="headerlink" title="更换软件源"></a>更换软件源</h2><ul>
<li><p>向速度低头.jpg</p>
</li>
<li><p><code>sudo vi/nano /etc/apt/sources.list</code> 使用vi或者nano编辑器打开软件源的文件, 有什么编辑器就用什么编辑器</p>
</li>
<li><p>用编辑器打开之后, 把默认的软件源网址全部用<code>#</code>注释掉, 加入下面一大段网址(中科大源):</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">##中科大源</span><br><span class="line"></span><br><span class="line">deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse</span><br><span class="line">deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse</span><br><span class="line">deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse</span><br><span class="line">deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse</span><br><span class="line">deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse</span><br><span class="line">deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse</span><br><span class="line">deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse</span><br><span class="line">deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse</span><br><span class="line">deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse</span><br><span class="line">deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse</span><br></pre></td></tr></table></figure>
</li>
<li><p>保存并退出心里有数吧(手动狗头)</p>
</li>
<li><p>最后运行 <code>sudo apt-get update</code> 见证一下国内源的速度吧!</p>
</li>
<li><p>时间多或者版本号强迫症的同学可以马上 <code>sudo apt-get upgrade</code> 升级一下软件, 你要问我Linux内核更新了之后要不要重启呀? 随你便…</p>
</li>
</ul>
<hr>
<h2 id="安装配置基础软件-VIM-amp-tree-amp-git"><a href="#安装配置基础软件-VIM-amp-tree-amp-git" class="headerlink" title="安装配置基础软件: VIM &amp; tree &amp; git"></a>安装配置基础软件: VIM &amp; tree &amp; git</h2><ul>
<li><code>sudo apt-get install vim tree git</code></li>
<li><code>sudo vim /etc/vim/vimrc</code> 接着来改一下vim的配置文件</li>
<li>打开配置文件之后, 在后面合适的位置添加<code>set nu</code>来显示行号</li>
<li>添加一下代码使缩进为标准的4个空格</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">set tabstop=4</span><br><span class="line">set softtabstop=4</span><br><span class="line">set shiftwidth=4</span><br></pre></td></tr></table></figure>

<ul>
<li>保存退出, 直接生效</li>
</ul>
<hr>
<h2 id="换一个好看的shell-安装zsh及oh-my-zsh"><a href="#换一个好看的shell-安装zsh及oh-my-zsh" class="headerlink" title="换一个好看的shell: 安装zsh及oh-my-zsh"></a>换一个好看的shell: 安装zsh及oh-my-zsh</h2><ul>
<li>默认的bash不好看, 换!</li>
<li><code>sudo apt-get install zsh</code> 一般来说默认的源是有的</li>
<li><code>chsh -s /bin/zsh</code> 切换默认shell为zsh, 重启生效</li>
<li><code>sh -c &quot;$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)&quot;</code> 使用自动脚本安装oh-my-zsh</li>
<li><code>vim ~/.zshrc</code> 打开zsh配置文件</li>
<li>修改如下图所示的主题那一行, 把主题改成agnoster</li>
</ul>
<p><img src="http://static.zybuluo.com/Mark201802/7b77735qjkdaxmyllz2hcq5c/zshrc.png" alt="zsh修改主题"></p>
<ul>
<li><code>source ~/.zshrc</code> 使变化的配置文件生效</li>
</ul>
<hr>
<h2 id="远程连接工具-remmina"><a href="#远程连接工具-remmina" class="headerlink" title="远程连接工具: remmina"></a>远程连接工具: remmina</h2><ul>
<li><code>sudo apt-get install remmina</code></li>
<li>安装完成后把字体改为<code>Fira Code</code>, 否则远程服务器的zsh主题会显示有问题</li>
</ul>
<hr>
<h2 id="Chrome-amp-FireFox不用我多说"><a href="#Chrome-amp-FireFox不用我多说" class="headerlink" title="Chrome &amp; FireFox不用我多说"></a>Chrome &amp; FireFox不用我多说</h2><ul>
<li>改地区和搜索引擎以及字体, 不使用系统任务栏, 这些都已经轻车熟路了.</li>
</ul>
<hr>
<h2 id="主力编辑器-Visual-Studio-Code"><a href="#主力编辑器-Visual-Studio-Code" class="headerlink" title="主力编辑器: Visual Studio Code"></a>主力编辑器: Visual Studio Code</h2><ul>
<li>主要是改一下配置文件和添加一些拓展, 上图</li>
</ul>
<p><img src="http://static.zybuluo.com/Mark201802/x7qquytn2rj5r83sqkn699oh/image.png" alt="vsc1"></p>
<p><img src="http://static.zybuluo.com/Mark201802/lzfqnulk4fxk91me2eaouc9u/image.png" alt="vsc2"></p>
<p><img src="http://static.zybuluo.com/Mark201802/2lzkhh7z5nv7linrzgcq1pc5/image.png" alt="vsc3"></p>
<hr>
<h2 id="几个需要说明的国产软件"><a href="#几个需要说明的国产软件" class="headerlink" title="几个需要说明的国产软件"></a>几个需要说明的国产软件</h2><ul>
<li><p><code>网易云音乐Linux版1.1</code>, 你会发现普通用户打不开对吧, 因为这个版本需要root用户才能打开, 于是可以在<code>zshrc</code>中加入这样一句: <code>alias wyy=&quot;sudo netease-cloud-music&quot;</code></p>
</li>
<li><p>安装<code>搜狗输入法</code>之前, 可以先在设置里安装本地语言包, 这样就有靠谱的fcitx国内特色依赖, 接下来注意! 使用<code>sudo apt-get remove fonts-arphic-ukai fonts-arphic-uming</code>把楷体卸载, 用过Linux Mint的同学笑而不语(手动滑稽)</p>
</li>
<li><p>下一篇文章是使用Deepin-wine方式实现Linux系统运行qq, tim, 微信等常用windows软件, 敬请期待(随缘更新)</p>
</li>
</ul>
<hr>
<h2 id="Python3库的补充"><a href="#Python3库的补充" class="headerlink" title="Python3库的补充"></a>Python3库的补充</h2><ul>
<li><code>sudo apt-get install python3-pip</code> 安装pip3</li>
<li>切换豆瓣源</li>
</ul>
<p><code>sudo vim ~/.pip/pip.conf</code> 你要问我没有这个文件怎么办? <code>mkdir</code>会吗?</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">[list]</span><br><span class="line">format=columns</span><br><span class="line">[global]</span><br><span class="line">index-url = http://pypi.douban.com/simple</span><br><span class="line">[install]</span><br><span class="line">trusted-host=pypi.douban.com</span><br></pre></td></tr></table></figure>

<p>保存退出之后立即生效</p>
<ul>
<li>安装以下库<code>requests</code>, <code>bs4</code>, <code>lxml</code>, <code>selenium</code>, <code>pymongo</code>, <code>Flask</code></li>
<li>需要注意的是: 如果想使用PhantomJS无头浏览器, selenium的版本要降到2.48.0</li>
</ul>
<hr>
<h2 id="爬虫要用到的一些东西-PhantomJS-ChromeDriver"><a href="#爬虫要用到的一些东西-PhantomJS-ChromeDriver" class="headerlink" title="爬虫要用到的一些东西: PhantomJS, ChromeDriver"></a>爬虫要用到的一些东西: PhantomJS, ChromeDriver</h2><ul>
<li>他们俩的安装包建议去淘宝下载, 或者我的移动硬盘里已经有了, <a href="http://npm.taobao.org/" target="_blank" rel="noopener">淘宝镜像源地址</a></li>
<li>一般来说我会把phantomjs直接解压到<code>/home/mark</code>里, 要使用的时候, 在<code>PhantomJS()</code>里加上这条绝对路径就行</li>
<li>Chromedriver请根据自己的Chrome版本进行选择, 解压后执行<code>cp chromedriver /usr/bin/</code>把它复制到<code>/usr/bin</code>里就行(别告诉我解压都不会)</li>
</ul>
<hr>
<h2 id="Node-js环境搭建"><a href="#Node-js环境搭建" class="headerlink" title="Node.js环境搭建"></a>Node.js环境搭建</h2><ul>
<li><code>git clone https://github.com/cnpm/nvm.git</code></li>
<li>在<code>bashrc</code>中加入<code>source /XX/XX/nvm/nvm.sh</code></li>
<li><code>source ~/.bashrc</code></li>
<li><code>nvm</code><br>(有了nvm之后可以安装node.js的任意版本)</li>
<li><code>nvm install v10.5.0</code>下载node.js 10.5.0版本</li>
</ul>
<hr>
<h2 id="mongodb数据库"><a href="#mongodb数据库" class="headerlink" title="mongodb数据库"></a>mongodb数据库</h2><ul>
<li><code>sudo apt-get install mongodb</code></li>
<li><code>sudo apt-get install tmux</code></li>
<li><code>mkdir XXX</code>为数据库创建一个文件夹</li>
<li><code>systemctl disable mongodb</code></li>
<li><code>tmux</code>进入一个新的终端</li>
<li>在这个新的终端输入<code>mongod --dbpath /home/db</code></li>
<li><code>Ctrl + D</code>回到原来的终端</li>
<li><code>mongo</code></li>
<li><code>show dbs</code>查看存储情况</li>
<li><code>use 数据库名</code>使用数据库</li>
<li><code>db.数据集合名.instert({&quot;XXX&quot;:&quot;XXX&quot;})</code>插入数据(增)</li>
<li><code>db.数据集合名.find()</code>查看当前数据库的信息</li>
<li><code>db.数据集合名.drop()</code>删除指定的数据集合(删)</li>
<li><code>db.dropDatabase()</code>删库</li>
<li><code>db.数据集合名.update({...})</code>改</li>
<li><code>db.数据集合名.findOne({...})</code>查</li>
</ul>
<hr>
<h2 id="安利两个好用的小软件"><a href="#安利两个好用的小软件" class="headerlink" title="安利两个好用的小软件"></a>安利两个好用的小软件</h2><ul>
<li><code>BleachBit(as root)</code> &amp; <code>redshift</code></li>
<li>第一个是Linux平台上老牌的系统清理软件, 简洁易用</li>
<li>redshift中文名红移, 是一个屏幕色温调节软件, 支持白天和夜间自动调整色温, 不过嘛, 配置文件做一点手脚就行了.</li>
</ul>
<p><img src="http://static.zybuluo.com/Mark201802/ufnuwas3rr9fliibh1jpt7qe/redshift.png" alt="redshift"></p>
<p>懂我意思没(手动滑稽), 下面把配置文件放出来</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br></pre></td><td class="code"><pre><span class="line">; Global settings for redshift</span><br><span class="line">[redshift]</span><br><span class="line">; Set the day and night screen temperatures</span><br><span class="line">temp-day=6750</span><br><span class="line">temp-night=6750</span><br><span class="line"></span><br><span class="line">; Enable/Disable a smooth transition between day and night</span><br><span class="line">; 0 will cause a direct change from day to night screen temperature.</span><br><span class="line">; 1 will gradually increase or decrease the screen temperature.</span><br><span class="line">transition=1</span><br><span class="line"></span><br><span class="line">; Set the screen brightness. Default is 1.0.</span><br><span class="line">;brightness=0.9</span><br><span class="line">; It is also possible to use different settings for day and night</span><br><span class="line">; since version 1.8.</span><br><span class="line">;brightness-day=0.7</span><br><span class="line">;brightness-night=0.4</span><br><span class="line">; Set the screen gamma (for all colors, or each color channel</span><br><span class="line">; individually)</span><br><span class="line">gamma=0.8</span><br><span class="line">;gamma=0.8:0.7:0.8</span><br><span class="line">; This can also be set individually for day and night since</span><br><span class="line">; version 1.10.</span><br><span class="line">;gamma-day=0.8:0.7:0.8</span><br><span class="line">;gamma-night=0.6</span><br><span class="line"></span><br><span class="line">; Set the location-provider: &apos;geoclue&apos;, &apos;geoclue2&apos;, &apos;manual&apos;</span><br><span class="line">; type &apos;redshift -l list&apos; to see possible values.</span><br><span class="line">; The location provider settings are in a different section.</span><br><span class="line">location-provider=manual</span><br><span class="line"></span><br><span class="line">; Set the adjustment-method: &apos;randr&apos;, &apos;vidmode&apos;</span><br><span class="line">; type &apos;redshift -m list&apos; to see all possible values.</span><br><span class="line">; &apos;randr&apos; is the preferred method, &apos;vidmode&apos; is an older API.</span><br><span class="line">; but works in some cases when &apos;randr&apos; does not.</span><br><span class="line">; The adjustment method settings are in a different section.</span><br><span class="line">adjustment-method=randr</span><br><span class="line"></span><br><span class="line">; Configuration of the location-provider:</span><br><span class="line">; type &apos;redshift -l PROVIDER:help&apos; to see the settings.</span><br><span class="line">; ex: &apos;redshift -l manual:help&apos;</span><br><span class="line">; Keep in mind that longitudes west of Greenwich (e.g. the Americas)</span><br><span class="line">; are negative numbers.</span><br><span class="line">[manual]</span><br><span class="line">lat=36.10</span><br><span class="line">lon=103.80</span><br><span class="line"></span><br><span class="line">; Configuration of the adjustment-method</span><br><span class="line">; type &apos;redshift -m METHOD:help&apos; to see the settings.</span><br><span class="line">; ex: &apos;redshift -m randr:help&apos;</span><br><span class="line">; In this example, randr is configured to adjust screen 1.</span><br><span class="line">; Note that the numbering starts from 0, so this is actually the</span><br><span class="line">; second screen. If this option is not specified, Redshift will try</span><br><span class="line">; to adjust _all_ screens.</span><br><span class="line">; [randr]</span><br><span class="line">; screen=1</span><br></pre></td></tr></table></figure>

<hr>
<h2 id="基本上可以搞事情了-突然发现还有一件事没干-配置github-amp-码云"><a href="#基本上可以搞事情了-突然发现还有一件事没干-配置github-amp-码云" class="headerlink" title="基本上可以搞事情了, 突然发现还有一件事没干, 配置github &amp; 码云"></a>基本上可以搞事情了, 突然发现还有一件事没干, 配置github &amp; 码云</h2><ul>
<li>首先在本地创建ssh key: <code>ssh-keygen -t rsa -C &quot;your_email@youremail.com&quot;</code></li>
<li>后面的<a href="mailto:your_email@youremail.com" target="_blank" rel="noopener">your_email@youremail.com</a>改为你在github上注册的邮箱，之后会要求确认路径和输入密码，我们这使用默认的一路回车就行。成功的话会在~/下生成.ssh文件夹，进去，打开id_rsa.pub，复制里面的key。回到github上，进入 Account Settings（账户配置），左边选择SSH Keys，Add SSH Key,title随便填，粘贴在你电脑上生成的key。</li>
<li>验证是否成功: <code>ssh -T git@github.com</code></li>
<li>建一个合适的文件夹, 然后cd到这个文件夹: <code>git config --global user.name &quot;your name&quot;</code> <code>git config --global user.email &quot;your_email@youremail.com&quot;</code></li>
<li>然后<code>git clone</code>就行</li>
<li>最后建议自己写一个简单的Push脚本</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">git add .</span><br><span class="line">git commit -m &quot;xxxx&quot;</span><br><span class="line">git push</span><br></pre></td></tr></table></figure>

<hr>
<h2 id="开始你的Linux平台编程之旅吧"><a href="#开始你的Linux平台编程之旅吧" class="headerlink" title="开始你的Linux平台编程之旅吧!"></a>开始你的Linux平台编程之旅吧!</h2>
        </div>
        
          


  <section class='meta' id="footer-meta">
    <hr>
    <div class='new-meta-box'>
      
        
          <div class="new-meta-item date" itemprop="dateUpdated" datetime="2019-08-26T17:15:22+08:00">
  <a class='notlink'>
    <i class="fas fa-clock" aria-hidden="true"></i>
    <p>最后更新于 2019年8月26日</p>
  </a>
</div>

        
      
        
          
  
  <div class="new-meta-item meta-tags"><a class="tag" href="/tags/Linux/" rel="nofollow"><i class="fas fa-hashtag" aria-hidden="true"></i>&nbsp;<p>Linux</p></a></div>


        
      
        
          
  <div class="new-meta-item share -mob-share-list">
  <div class="-mob-share-list share-body">
    
      
        <a class="-mob-share-qq" title="QQ好友" rel="external nofollow noopener noreferrer"
          
          href="http://connect.qq.com/widget/shareqq/index.html?url=https://mark-thinkpad.gitee.io/2018/09/08/start_Linux/&title=我个人风格的Linux从零开始配置流程 | Mark's blog&pics=https://img.vim-cn.com/e5/755adedff8463a344e0870b440b718d4f4fa93.jpg&summary=Content


Content
发型版的选用
更改系统语言 &amp; 安装字体 &amp; 更改字体 &amp; 修改终端配置 &amp; 修改系统主题
更换软件源
安装配置基础软件: VIM &amp; tree &amp; git
换一个好看的shell: 安装zsh及oh-my-zsh
远程连接工具: remmina
Chrome &amp; FireFox不用我多说
主力编辑器: Visual Studio Code
几个需要说明的国产软件
Python3库的补充
爬虫要用到的一些东西: PhantomJS, ChromeDriver
Node.js环境搭建
mongodb数据库
安利两个好用的小软件
基本上可以搞事情了, 突然发现还有一件事没干, 配置github &amp; 码云
开始你的Linux平台编程之旅吧!





"
          
          >
          
            <img src="https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/qq.png">
          
        </a>
      
    
      
        <a class="-mob-share-qzone" title="QQ空间" rel="external nofollow noopener noreferrer"
          
          href="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=https://mark-thinkpad.gitee.io/2018/09/08/start_Linux/&title=我个人风格的Linux从零开始配置流程 | Mark's blog&pics=https://img.vim-cn.com/e5/755adedff8463a344e0870b440b718d4f4fa93.jpg&summary=Content


Content
发型版的选用
更改系统语言 &amp; 安装字体 &amp; 更改字体 &amp; 修改终端配置 &amp; 修改系统主题
更换软件源
安装配置基础软件: VIM &amp; tree &amp; git
换一个好看的shell: 安装zsh及oh-my-zsh
远程连接工具: remmina
Chrome &amp; FireFox不用我多说
主力编辑器: Visual Studio Code
几个需要说明的国产软件
Python3库的补充
爬虫要用到的一些东西: PhantomJS, ChromeDriver
Node.js环境搭建
mongodb数据库
安利两个好用的小软件
基本上可以搞事情了, 突然发现还有一件事没干, 配置github &amp; 码云
开始你的Linux平台编程之旅吧!





"
          
          >
          
            <img src="https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/qzone.png">
          
        </a>
      
    
      
        <a class='qrcode' rel="external nofollow noopener noreferrer" href=''>
        
          <img src="https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/wechat.png">
        
        </a>
      
    
      
        <a class='qrcode' rel="external nofollow noopener noreferrer" href=''>
        
          <img src="https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/qrcode.png">
        
        </a>
      
    
  </div>
</div>



        
      
    </div>
  </section>


        
        
            <div class="prev-next">
                
                    <section class="prev">
                        <span class="art-item-left">
                            <h6><i class="fas fa-chevron-left" aria-hidden="true"></i>&nbsp;上一页</h6>
                            <h4>
                                <a href="/2018/09/09/refind_grub/" rel="prev" title="使用第三方引导refind美化开机引导界面 &amp; 美化grub2界面">
                                  
                                      使用第三方引导refind美化开机引导界面 &amp; 美化grub2界面
                                  
                                </a>
                            </h4>
                            
                                
                                <h6 class="tags">
                                    <a class="tag" href="/tags/Linux/"><i class="fas fa-hashtag fa-fw" aria-hidden="true"></i>Linux</a> <a class="tag" href="/tags/refind/"><i class="fas fa-hashtag fa-fw" aria-hidden="true"></i>refind</a> <a class="tag" href="/tags/grub2/"><i class="fas fa-hashtag fa-fw" aria-hidden="true"></i>grub2</a>
                                </h6>
                            
                        </span>
                    </section>
                
                
            </div>
        
      </section>
    </article>
  

  
    <!-- 显示推荐文章和评论 -->



  <article class="post white-box comments">
    <section class="article typo">
      <h4><i class="fas fa-comments fa-fw" aria-hidden="true"></i>&nbsp;评论</h4>
      
      
      
      
        <section id="comments">
          <div id="valine_container" class="valine_thread">
            <i class="fas fa-spinner fa-spin fa-fw"></i>
          </div>
        </section>
      
    </section>
  </article>


  




<!-- 根据页面mathjax变量决定是否加载MathJax数学公式js -->



  <script>
    window.subData = {
      title: '我个人风格的Linux从零开始配置流程',
      tools: true
    }
  </script>


</div>
<aside class='l_side'>
  
    
    
      
        
          
          
            <section class='widget author'>
  <div class='content pure'>
    
      <div class='avatar'>
        <img class='avatar' src='https://img.vim-cn.com/e5/755adedff8463a344e0870b440b718d4f4fa93.jpg'/>
      </div>
    
    
    
      <div class="social-wrapper">
        
          
            <a href="mailto:zhouganqing2018@gmail.com"
              class="social fas fa-envelope flat-btn"
              target="_blank"
              rel="external nofollow noopener noreferrer">
            </a>
          
        
          
            <a href="https://github.com/Mark-ThinkPad"
              class="social fab fa-github flat-btn"
              target="_blank"
              rel="external nofollow noopener noreferrer">
            </a>
          
        
          
            <a href="https://twitter.com/LumiaExtraordin"
              class="social fab fa-twitter flat-btn"
              target="_blank"
              rel="external nofollow noopener noreferrer">
            </a>
          
        
          
            <a href="https://t.me/LumiaExtraordinary"
              class="social fab fa-telegram flat-btn"
              target="_blank"
              rel="external nofollow noopener noreferrer">
            </a>
          
        
          
            <a href="https://music.163.com/#/user/home?id=35189854"
              class="social fas fa-headphones-alt flat-btn"
              target="_blank"
              rel="external nofollow noopener noreferrer">
            </a>
          
        
      </div>
    
  </div>
</section>

          
        
      
        
          
          
            
  <section class='widget toc-wrapper'>
    
<header class='pure'>
  <div><i class="fas fa-list fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;本文目录</div>
  
    <div class='wrapper'><a class="s-toc rightBtn" rel="external nofollow noopener noreferrer" href="javascript:void(0)"><i class="fas fa-thumbtack fa-fw"></i></a></div>
  
</header>

    <div class='content pure'>
      <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#Content"><span class="toc-text">Content</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#发型版的选用"><span class="toc-text">发型版的选用</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#更改系统语言-amp-安装字体-amp-更改字体-amp-修改终端配置-amp-修改系统主题"><span class="toc-text">更改系统语言 &amp; 安装字体 &amp; 更改字体 &amp; 修改终端配置 &amp; 修改系统主题</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#更换软件源"><span class="toc-text">更换软件源</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#安装配置基础软件-VIM-amp-tree-amp-git"><span class="toc-text">安装配置基础软件: VIM &amp; tree &amp; git</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#换一个好看的shell-安装zsh及oh-my-zsh"><span class="toc-text">换一个好看的shell: 安装zsh及oh-my-zsh</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#远程连接工具-remmina"><span class="toc-text">远程连接工具: remmina</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Chrome-amp-FireFox不用我多说"><span class="toc-text">Chrome &amp; FireFox不用我多说</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#主力编辑器-Visual-Studio-Code"><span class="toc-text">主力编辑器: Visual Studio Code</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#几个需要说明的国产软件"><span class="toc-text">几个需要说明的国产软件</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Python3库的补充"><span class="toc-text">Python3库的补充</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#爬虫要用到的一些东西-PhantomJS-ChromeDriver"><span class="toc-text">爬虫要用到的一些东西: PhantomJS, ChromeDriver</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Node-js环境搭建"><span class="toc-text">Node.js环境搭建</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#mongodb数据库"><span class="toc-text">mongodb数据库</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#安利两个好用的小软件"><span class="toc-text">安利两个好用的小软件</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#基本上可以搞事情了-突然发现还有一件事没干-配置github-amp-码云"><span class="toc-text">基本上可以搞事情了, 突然发现还有一件事没干, 配置github &amp; 码云</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#开始你的Linux平台编程之旅吧"><span class="toc-text">开始你的Linux平台编程之旅吧!</span></a></li></ol></li></ol>
    </div>
  </section>


          
        
      
        
          
          
            <section class='widget grid'>
  
<header class='pure'>
  <div><i class="fas fa-map-signs fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;站内导航</div>
  
</header>

  <div class='content pure'>
    <ul class="grid navgation">
      
        <li><a class="flat-box" title="/" href="/"
          
          
          id="home">
          
            <i class="fas fa-clock fa-fw" aria-hidden="true"></i>
          
          近期文章
        </a></li>
      
        <li><a class="flat-box" title="/archives/" href="/archives/"
          
            rel="nofollow"
          
          
          id="archives">
          
            <i class="fas fa-archive fa-fw" aria-hidden="true"></i>
          
          文章归档
        </a></li>
      
        <li><a class="flat-box" title="/projects/" href="/projects/"
          
          
          id="projects">
          
            <i class="fas fa-code-branch fa-fw" aria-hidden="true"></i>
          
          开源项目
        </a></li>
      
        <li><a class="flat-box" title="/books/" href="/books/"
          
          
          id="books">
          
            <i class="fas fa-book-open fa-fw" aria-hidden="true"></i>
          
          读书专栏
        </a></li>
      
        <li><a class="flat-box" title="/friends/" href="/friends/"
          
            rel="nofollow"
          
          
          id="friends">
          
            <i class="fas fa-link fa-fw" aria-hidden="true"></i>
          
          我的友链
        </a></li>
      
        <li><a class="flat-box" title="/about/" href="/about/"
          
            rel="nofollow"
          
          
          id="about">
          
            <i class="fas fa-info-circle fa-fw" aria-hidden="true"></i>
          
          关于小站
        </a></li>
      
    </ul>
  </div>
</section>

          
        
      
        
          
          
            
  <section class='widget category'>
    
<header class='pure'>
  <div><i class="fas fa-folder-open fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;文章分类</div>
  
    <a class="rightBtn"
    
      rel="nofollow"
    
    
    href="/categories/"
    title="categories/">
    <i class="fas fa-expand-arrows-alt fa-fw"></i></a>
  
</header>

    <div class='content pure'>
      <ul class="entry">
        
          <li><a class="flat-box" title="/categories/Basic/" href="/categories/Basic/"><div class='name'>Basic</div><div class='badge'>(1)</div></a></li>
        
          <li><a class="flat-box" title="/categories/Play-on-Linux/" href="/categories/Play-on-Linux/"><div class='name'>Play_on_Linux</div><div class='badge'>(3)</div></a></li>
        
          <li><a class="flat-box" title="/categories/Programs/" href="/categories/Programs/"><div class='name'>Programs</div><div class='badge'>(10)</div></a></li>
        
          <li><a class="flat-box" title="/categories/Projects/" href="/categories/Projects/"><div class='name'>Projects</div><div class='badge'>(2)</div></a></li>
        
          <li><a class="flat-box" title="/categories/Start-Linux/" href="/categories/Start-Linux/"><div class='name'>Start_Linux</div><div class='badge'>(3)</div></a></li>
        
          <li><a class="flat-box" title="/categories/books/" href="/categories/books/"><div class='name'>books</div><div class='badge'>(6)</div></a></li>
        
          <li><a class="flat-box" title="/categories/movies/" href="/categories/movies/"><div class='name'>movies</div><div class='badge'>(2)</div></a></li>
        
          <li><a class="flat-box" title="/categories/置顶消息/" href="/categories/置顶消息/"><div class='name'>置顶消息</div><div class='badge'>(1)</div></a></li>
        
      </ul>
    </div>
  </section>


          
        
      
        
          
          
            
  <section class='widget tagcloud'>
    
<header class='pure'>
  <div><i class="fas fa-fire fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;热门标签</div>
  
    <a class="rightBtn"
    
      rel="nofollow"
    
    
    href="/tags/"
    title="tags/">
    <i class="fas fa-expand-arrows-alt fa-fw"></i></a>
  
</header>

    <div class='content pure'>
      <a href="/tags/C/" style="font-size: 14px; color: #999">C++</a> <a href="/tags/CPP/" style="font-size: 14px; color: #999">CPP</a> <a href="/tags/Django/" style="font-size: 20.67px; color: #6c6c6c">Django</a> <a href="/tags/Interstellar/" style="font-size: 14px; color: #999">Interstellar</a> <a href="/tags/Linux/" style="font-size: 24px; color: #555">Linux</a> <a href="/tags/MySQL/" style="font-size: 14px; color: #999">MySQL</a> <a href="/tags/PyQt5/" style="font-size: 14px; color: #999">PyQt5</a> <a href="/tags/Python3/" style="font-size: 22.33px; color: #606060">Python3</a> <a href="/tags/QQ空间/" style="font-size: 14px; color: #999">QQ空间</a> <a href="/tags/TCP/" style="font-size: 14px; color: #999">TCP</a> <a href="/tags/The-Wandering-Earth/" style="font-size: 14px; color: #999">The Wandering Earth</a> <a href="/tags/Web/" style="font-size: 19px; color: #777">Web</a> <a href="/tags/beyond/" style="font-size: 15.67px; color: #8e8e8e">beyond</a> <a href="/tags/blog/" style="font-size: 14px; color: #999">blog</a> <a href="/tags/book/" style="font-size: 19px; color: #777">book</a> <a href="/tags/deepin-wine/" style="font-size: 14px; color: #999">deepin-wine</a> <a href="/tags/grub2/" style="font-size: 14px; color: #999">grub2</a> <a href="/tags/qq/" style="font-size: 14px; color: #999">qq</a> <a href="/tags/refind/" style="font-size: 14px; color: #999">refind</a> <a href="/tags/self/" style="font-size: 17.33px; color: #828282">self</a> <a href="/tags/terminal/" style="font-size: 14px; color: #999">terminal</a> <a href="/tags/tim/" style="font-size: 14px; color: #999">tim</a> <a href="/tags/主站点/" style="font-size: 14px; color: #999">主站点</a> <a href="/tags/双拼/" style="font-size: 14px; color: #999">双拼</a> <a href="/tags/影评/" style="font-size: 15.67px; color: #8e8e8e">影评</a> <a href="/tags/星际穿越/" style="font-size: 14px; color: #999">星际穿越</a> <a href="/tags/流浪地球/" style="font-size: 14px; color: #999">流浪地球</a> <a href="/tags/自动点赞/" style="font-size: 14px; color: #999">自动点赞</a>
    </div>
  </section>


          
        
      
        
          
          
            


  <section class='widget music'>
    
<header class='pure'>
  <div><i class="fas fa-compact-disc fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;推荐音乐</div>
  
    <a class="rightBtn"
    
      rel="external nofollow noopener noreferrer"
    
    
      target="_blank"
    
    href="https://music.163.com/#/user/home?id=35189854"
    title="https://music.163.com/#/user/home?id=35189854">
    <i class="far fa-heart fa-fw"></i></a>
  
</header>

    <div class='content pure'>
      
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.7.0/dist/APlayer.min.css">
  <div class="aplayer"
    data-theme="#1BCDFC"
    
    
    data-mode="circulation"
    data-server="netease"
    data-type="playlist"
    data-id="2945119589"
    data-volume="0.7">
  </div>
  <script src="https://cdn.jsdelivr.net/npm/aplayer@1.7.0/dist/APlayer.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/meting@1.1.0/dist/Meting.min.js"></script>


    </div>
  </section>


          
        
      
    

  
</aside>

<footer id="footer" class="clearfix">
  
  
    <div class="social-wrapper">
      
        
          <a href="mailto:zhouganqing2018@gmail.com"
            class="social fas fa-envelope flat-btn"
            target="_blank"
            rel="external nofollow noopener noreferrer">
          </a>
        
      
        
          <a href="https://github.com/Mark-ThinkPad"
            class="social fab fa-github flat-btn"
            target="_blank"
            rel="external nofollow noopener noreferrer">
          </a>
        
      
        
          <a href="https://twitter.com/LumiaExtraordin"
            class="social fab fa-twitter flat-btn"
            target="_blank"
            rel="external nofollow noopener noreferrer">
          </a>
        
      
        
          <a href="https://t.me/LumiaExtraordinary"
            class="social fab fa-telegram flat-btn"
            target="_blank"
            rel="external nofollow noopener noreferrer">
          </a>
        
      
        
          <a href="https://music.163.com/#/user/home?id=35189854"
            class="social fas fa-headphones-alt flat-btn"
            target="_blank"
            rel="external nofollow noopener noreferrer">
          </a>
        
      
    </div>
  
  <br>
  <div><p>博客内容遵循 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 协议</a></p>
</div>
  <div>
    本站使用
    <a href="https://xaoxuu.com/wiki/material-x/" target="_blank" class="codename">Material X</a>
    作为主题
    
      ，
      总访问量为
      <span id="busuanzi_value_site_pv"><i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span>
      次
    
    。
  </div>
</footer>
<script>setLoadingBarProgress(80);</script>


      <script>setLoadingBarProgress(60);</script>
    </div>
    <a class="s-top fas fa-arrow-up fa-fw" href='javascript:void(0)'></a>
  </div>
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js"></script>

  <script>
    var GOOGLE_CUSTOM_SEARCH_API_KEY = "";
    var GOOGLE_CUSTOM_SEARCH_ENGINE_ID = "";
    var ALGOLIA_API_KEY = "";
    var ALGOLIA_APP_ID = "";
    var ALGOLIA_INDEX_NAME = "";
    var AZURE_SERVICE_NAME = "";
    var AZURE_INDEX_NAME = "";
    var AZURE_QUERY_KEY = "";
    var BAIDU_API_ID = "";
    var SEARCH_SERVICE = "hexo" || "hexo";
    var ROOT = "/"||"/";
    if(!ROOT.endsWith('/'))ROOT += '/';
  </script>

<script src="//instant.page/1.2.2" type="module" integrity="sha384-2xV8M5griQmzyiY3CDqh1dn4z3llDVqZDqzjzcY+jCBCk/a5fXJmuZ/40JJAPeoU"></script>


  <script async src="https://cdn.jsdelivr.net/npm/scrollreveal@4.0.5/dist/scrollreveal.min.js"></script>
  <script type="text/javascript">
    $(function() {
      const $reveal = $('.reveal');
      if ($reveal.length === 0) return;
      const sr = ScrollReveal({ distance: 0 });
      sr.reveal('.reveal');
    });
  </script>


  <script src="https://cdn.jsdelivr.net/npm/node-waves@0.7.6/dist/waves.min.js"></script>
  <script type="text/javascript">
    $(function() {
      Waves.attach('.flat-btn', ['waves-button']);
      Waves.attach('.float-btn', ['waves-button', 'waves-float']);
      Waves.attach('.float-btn-light', ['waves-button', 'waves-float', 'waves-light']);
      Waves.attach('.flat-box', ['waves-block']);
      Waves.attach('.float-box', ['waves-block', 'waves-float']);
      Waves.attach('.waves-image');
      Waves.init();
    });
  </script>


  <script async src="https://cdn.jsdelivr.net/gh/xaoxuu/cdn-busuanzi@2.3/js/busuanzi.pure.mini.js"></script>




  
  
  
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-backstretch/2.0.4/jquery.backstretch.min.js"></script>
    <script type="text/javascript">
      $(function(){
        if ('.cover') {
          $('.cover').backstretch(
          ["https://img.vim-cn.com/6d/a0c9e6f9efad8b731cb7376504bd10d79d2053.jpg"],
          {
            duration: "6000",
            fade: "2500"
          });
        } else {
          $.backstretch(
          ["https://img.vim-cn.com/6d/a0c9e6f9efad8b731cb7376504bd10d79d2053.jpg"],
          {
            duration: "6000",
            fade: "2500"
          });
        }
      });
    </script>
  









  <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
  
    
      <script src="https://cdn.jsdelivr.net/gh/xaoxuu/volantis@1.0.5/js/volantis.min.js"></script>
    
  
  <script>
  var GUEST_INFO = ['nick','mail','link'];
  var guest_info = 'nick,mail,link'.split(',').filter(function(item){
    return GUEST_INFO.indexOf(item) > -1
  });
  var notify = 'true' == true;
  var verify = 'true' == true;
  var valine = new Valine();
  valine.init({
    el: '#valine_container',
    notify: notify,
    verify: verify,
    guest_info: guest_info,
    
    appId: "7IdIOOO1yeUBynVuPK9SVVWv-gzGzoHsz",
    appKey: "zw0MO9kI8f2IFbGJfw3wG5qx",
    placeholder: "欢迎来评论哟~",
    pageSize:'10',
    avatar:'mp',
    lang:'zh-cn',
    highlight:'true'
  })
  </script>



  <script src="https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.5/js/app.js"></script>


  <script src="https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.5/js/search.js"></script>




<!-- 复制 -->
<script src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js"></script>
<script>
  let COPY_SUCCESS = "复制成功";
  let COPY_FAILURE = "复制失败";
  /*页面载入完成后，创建复制按钮*/
  !function (e, t, a) {
    /* code */
    var initCopyCode = function(){
      var copyHtml = '';
      copyHtml += '<button class="btn-copy" data-clipboard-snippet="">';
      copyHtml += '  <i class="fa fa-copy"></i><span>复制</span>';
      copyHtml += '</button>';
      $(".highlight .code pre").before(copyHtml);
      var clipboard = new ClipboardJS('.btn-copy', {
        target: function(trigger) {
          return trigger.nextElementSibling;
        }
      });

      clipboard.on('success', function(e) {
        //您可以加入成功提示
        console.info('Action:', e.action);
        console.info('Text:', e.text);
        console.info('Trigger:', e.trigger);
        success_prompt(COPY_SUCCESS);
        e.clearSelection();
      });
      clipboard.on('error', function(e) {
        //您可以加入失败提示
        console.error('Action:', e.action);
        console.error('Trigger:', e.trigger);
        fail_prompt(COPY_FAILURE);
      });
    }
    initCopyCode();

  }(window, document);

  /**
   * 弹出式提示框，默认1.5秒自动消失
   * @param message 提示信息
   * @param style 提示样式，有alert-success、alert-danger、alert-warning、alert-info
   * @param time 消失时间
   */
  var prompt = function (message, style, time)
  {
      style = (style === undefined) ? 'alert-success' : style;
      time = (time === undefined) ? 1500 : time*1000;
      $('<div>')
          .appendTo('body')
          .addClass('alert ' + style)
          .html(message)
          .show()
          .delay(time)
          .fadeOut();
  };

  // 成功提示
  var success_prompt = function(message, time)
  {
      prompt(message, 'alert-success', time);
  };

  // 失败提示
  var fail_prompt = function(message, time)
  {
      prompt(message, 'alert-danger', time);
  };

  // 提醒
  var warning_prompt = function(message, time)
  {
      prompt(message, 'alert-warning', time);
  };

  // 信息提示
  var info_prompt = function(message, time)
  {
      prompt(message, 'alert-info', time);
  };

</script>


<!-- fancybox -->
<script src="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js"></script>
<script>
  let LAZY_LOAD_IMAGE = "";
  $(".article-entry").find("fancybox").find("img").each(function () {
      var element = document.createElement("a");
      $(element).attr("data-fancybox", "gallery");
      $(element).attr("href", $(this).attr("src"));
      /* 图片采用懒加载处理时,
       * 一般图片标签内会有个属性名来存放图片的真实地址，比如 data-original,
       * 那么此处将原本的属性名src替换为对应属性名data-original,
       * 修改如下
       */
       if (LAZY_LOAD_IMAGE) {
         $(element).attr("href", $(this).attr("data-original"));
       }
      $(this).wrap(element);
  });
</script>





  <script>setLoadingBarProgress(100);</script>
</body>
</html>
